Text Elements

Heading

There are six tags for headings, <h1> through <h6> with each having a closing tag pair. Heading tags follows a hierarchy in size, where <h1> is the largest and <h6> is the smallest.

It is customary for a page to have only one <h1>

Paragraph

The <p> tag is for creating paragraphs, it has a matching closing tag </p>

Comment

Comments in html are created when the characters <!-- and --> are declared. Any code between <!-- and --> becomes hidden from the interpreted. It works for one line or for multiple lines.

Bold

The tag <b> with closing pair </b> will make any text bold. Staring with html5, the use of this tag is discouraged, in favor of the <strong></strong> tags. The disfavor of the <b> tag has its root in something called semantic html.

Italic

The tag to make text italic is <i> with the closing tag </i>. For semantic html reason, <em></em> is favored, instead.

Leave a Reply

Your email address will not be published. Required fields are marked *